package com.milk.nettylearn.nio.c4;

import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.channels.SocketChannel;
import java.nio.charset.StandardCharsets;

public class Client {
    public static void main(String[] args) throws IOException {
        SocketChannel serverSocket = SocketChannel.open();
        serverSocket.connect(new InetSocketAddress(8080));
        serverSocket.write(StandardCharsets.UTF_8.encode("0123456789abcdef3333\n"));
        System.in.read();
    }
}
